function old_debug( rqid, data, newline ) {
	if ( $('#debug_' + rqid ).length == 0 ) {
		$('#debug_content').append( "<div id='debug_" + rqid + "' class=debug_row></div>" );
	} 
	
	$('#debug_' + rqid ).append( "<div class=debug_line>" + data + "</div>" );
}
function debug( ) {

	this.init = function() {
	$('#debug').html(
		"<div id='debug_open'><a href='javascript:void(0)' onclick='javascript:debug.open()'>*</a></div>" +
		"<div id='debug_close'><a href='javascript:void(0)' onclick='javascript:debug.close()'>x</a>&nbsp;</div>" +
		"<div id='debug_content'></div>"
	);


	}
	this.open = function() {
		$('#debug').attr('style' ,"width: 400px;height: 250px;");
		$('#debug_close').show();
		$('#debug_open').hide();
		$('#debug_content').show();
	}
	this.close = function() {
		$('#debug').attr('style' ,"width: 16px;height: 16px;");
		$('#debug_close').hide();
		$('#debug_open').show();
		$('#debug_content').hide();
		
	}
}


$(document).ready(function(){
	debug = new debug();
	debug.init();
});

